package com.hdw.med.api;

import com.hdw.common.vo.PaginationVO;
import com.hdw.med.bean.model.BaseDb;


import java.util.List;
import java.util.Map;

/**
 * baseDb服务类
 * Created by hozeData on 2021/05/21.
 */
public interface BaseDbService {

    List<BaseDb> findByModel(BaseDb baseDb);

    PaginationVO<BaseDb> findPageByModel(BaseDb baseDb, Integer pageNum, Integer pageSize);

    BaseDb getById(Long idDb);

    int insert(BaseDb baseDb);

    int insertSelective(BaseDb baseDb);

    int updateByIdSelective(BaseDb baseDb);

    int updateById(BaseDb baseDb);

    int deleteById(Long idDb);

    String testDB(BaseDb baseDb);

    List<Map<String, Object>> testDynamicDataSource();
}
